package engine.newUi
{
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	import flash.text.StyleSheet;
	
	import newx.com.config.StaticIni;
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;
	
	public class UpNoticeUI extends BaseUI
	{
		public var panl:MovieClip;
		public var lab_name:NxLabel;
		public var txt_info:NxText;
		public var txt_openbtn:NxText;
		public var pic:NxClip;
		public var clostBtn:NxButton;
		public var btn_pre:NxButton;
		public var btn_next:NxButton;
		public var eff:MovieClip;
		public var fenge:MovieClip;
		private var control:UpNoticeLogic;
		public function UpNoticeUI(popupUI:Boolean=true)
		{
			control=UpNoticeLogic.getInstance();
			super(popupUI);
		}
		
		override public function Init():void
		{
			var txtStyle:StyleSheet	=	new StyleSheet();
			
			txtStyle.setStyle("a:link"		,{color:"#FFFF00",textDecoration:"underline"});
			txtStyle.setStyle("a:visited"	,{color:"#"+StaticIni.getIniVar("Css_a_Task","visited")});
			txtStyle.setStyle("a:hover"	,{color:"#"+StaticIni.getIniVar("Css_a_Task","hover"),textDecoration:"none"});
			txt_openbtn.styleSheet = txtStyle;
			control.uiinit();
		}
		
		override protected function  BeforeShow():void
		{
			control.BeforeShow();
		}
		
		override protected function AfterHide():void
		{
			control.AfterHide();
		}
	}
}